<!DOCTYPE html>
<html>
	<head>
	    <meta charset="UTF-8">
	    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
	    <title>订单详情（待评价）</title>
	    <link href="../css/mui.min.css" rel="stylesheet"/>
	    <link rel="stylesheet" type="text/css" href="../fonts/iconfont/iconfont.css"/>
	    <link rel="stylesheet" type="text/css" href="../css/global.css"/>
	    <style type="text/css">
	    	.mui-checkbox.mui-left input[type=checkbox], .mui-radio.mui-left input[type=radio]{left: 0;}
			.mui-checkbox.mui-left label, .mui-radio.mui-left label{padding-left: 36px;}
			.mui-radio input[type=radio]:checked:before{content:'\e442'}
			.mark{position: absolute;top: 50%;-webkit-transform: translateY(-50%);}
	    </style>
	</head>
	<body ng-app="app" ng-controller="my_controller">
	    <header class="mui-bar mui-bar-nav bg_white">
	        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	        <h1 class="mui-title colorP">订单详情</h1>
	    </header>
		<div class="mui-content">
			<div></div>
			<ul class="mui-table-view margin-bottom10px bg_white">
				<li class="mui-table-view-cell mui-media">
					<i class="mui-icon iconfont color999">&#xe61b;</i>
					<span class="color0">订单编号：<i>{{res.order.ddid}}</i></span>
			    </li>
			    <li class="mui-table-view-cell mui-media">
		            <span class="mui-pull-left iconfont color999 font26 mark">&#xe61c;</span>
		            <div class="mui-media-body padding_l" style="padding-left: 36px;">
		              	<p class="color0 mui-clearfix line-height30px">
		              		<span class="mui-pull-left font18">{{res.addr.name}}</span>
		              		<span class="mui-pull-right font14">{{res.addr.mobile}}</span>
		              	</p>
		                <p class="color0 font14">{{res.addr.address}}</p>
			            <span ng-if="res.addr == null">没有添加地址</span>
		            </div>
			    </li>
			</ul>
			<ul class="mui-table-view margin-bottom5px bg_white">
	        	<li class="paddingl_r_15px_tb11px bg_white border-bottom">
	               <div class="user_pic"><img ng-src="{{res.user.icon}}" /></div>
					<span class="padding_l line-height30px">{{res.user.nick}} </span>
	            </li>
	            <li class="mui-table-view-cell mui-media">
	                <a href="javascript:;">
	                    <img class="mui-media-object mui-pull-left goods_pic "  ng-src="{{res.goods.good_image}}">
	                    <div class="mui-media-body">
	                     	<div class="mui-ellipsis">{{res.order.trade_name}}</div>
	                     	<div class="mui-clearfix line-height30px"><span class="mui-pull-right colorP font14">工期：<i>{{res.goods.maf_time}}</i>天</span></div>
	                     	<div class="mui-clearfix">
	                     		<span class="mui-pull-left colorRed">￥{{res.order.money}}</span>
	                     		<span class="mui-pull-right">x{{res.order.num}}</span>			                     		
	                     	</div>
	                    </div>
	                </a>
	            </li>
	        </ul> 
            <div class="mui-table-view-cell mui-media mui-clearfix bg_white" style="position: fixed;bottom: 0;left: 0;width: 100%;">
            	<span class="mui-pull-left">合计：<i>{{res.order.totalmoney}}</i></span> 
            	<button ng-click="ordershen(res.order.id,'0')" type="button" class="mui-btn mui-btn-blue mui-btn-block width20 padding5px font14 apply_returnMoney" ng-if="state==0 || state== 1">申请退款</button>
				<button ng-click="evaluate(res.order.ddid)" type="button" class="mui-btn mui-btn-blue mui-btn-block width20 padding5px font14" ng-if="state==1">查看物流</button>
				<button ng-click="ordershen(res.order.id,'1')" type="button" class="mui-btn mui-btn-blue mui-btn-block width20 padding5px font14" ng-if="state==1">确认收货</button>
				<button ng-click="pinglun(res.order.ddid)" type="button" class="mui-btn mui-btn-blue mui-btn-block width20 padding5px font14" ng-if="state==2">评价</button>
				<button type="button" class="mui-btn mui-btn-blue mui-btn-block width20 padding5px font14 have_fishined color999" ng-if="state==3">退款中...</button>
				<button type="button" class="mui-btn mui-btn-blue mui-btn-block width20 padding5px font14 have_fishined color999" ng-if="state==4">已完成</button> 
				<button ng-click="ordershen(res.order.id,'0')" type="button" class="mui-btn mui-btn-blue mui-btn-block width20 padding5px font14" ng-if="state==5">退款失败</button>
				<button ng-click="ordershen(res.order.id,'6')" type="button" class="mui-btn  mui-btn-block width20 padding5px font14 margin-right24 cancel_order_btn" ng-if="state==6">取消订单</button>
				<button ng-click="canpay(res.order.money,res.order.ddid,res.order.trade_name)" type="button" class="mui-btn mui-btn-blue mui-btn-block width20 padding5px font14" ng-if="state == 6 && status == 0">付款</button>
            </div>
		</div>
	</body>
	<script src="../js/mui.min.js"></script>
	<script src="../js/open.js"></script>
	<script src="../js/jquery.min.js"></script>
	<script src="../js/angular.min.js"></script>
	<script src="../js/apppublic.js"></script>
	<script src="../js/app/order_detail_for_evaluate.js"></script>
</html>